package cn.tedu.knows.portal.service;

import cn.tedu.knows.portal.model.Question;
import cn.tedu.knows.portal.vo.QuestionVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tedu.cn
 * @since 2022-03-04
 */
public interface IQuestionService extends IService<Question> {


        PageInfo<Question> getMyQuestions(String username,Integer pageNum,Integer pageSize);

        void saveQuestion(QuestionVO questionVO,String username);

        PageInfo<Question> getTeacherQuestions(String username,Integer pageNum,Integer pageSize);

        Question getQuestionById(Integer id);

}
